package com.medi.business.domain;

import lombok.Data;
import com.medi.common.annotation.Excel;
import com.medi.common.core.domain.BaseEntity;

import java.util.ArrayList;
import java.util.List;

/**
 * 组织机构对象 org_info
 * 
 * @author medi
 * @date 2024-09-13
 */
@Data
public class OrgInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 组织id */
    private String orgId;

    /** 父部门id */
    @Excel(name = "父部门id")
    private String parentId;

    /** 祖级列表 */
    @Excel(name = "祖级列表")
    private String ancestors;

    /** 组织名称 */
    @Excel(name = "组织名称")
    private String orgName;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Long sort;

    /** 负责人 */
    @Excel(name = "负责人")
    private String leader;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 组织状态（0正常 1停用） */
    @Excel(name = "组织状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 1代表删除） */
    @Excel(name = "删除标志", readConverterExp = "0=代表存在,1=代表删除")
    private String isDel;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String companyId;

    /** 商户户号 */
    @Excel(name = "商户户号")
    private String tenantId;


    private List<OrgInfo> children = new ArrayList<>();
}
